package com.czxy.rbac;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName("sys_role")
public class SysRole {
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  @TableField("roleName")
  private String roleName;
  @TableField("roleDesc")
  private String roleDesc;
//
  @TableField(exist = false)
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  private List<Integer> permIds = new ArrayList<>();

}

